package com.scalar.forecast.salesForecastEntry.forms;

import com.scalar.forecast.ForecastActionForm;
import com.scalar.forecast.salesForecastEntry.AutoGrowingLinkedList;
import com.scalar.forecast.salesForecastEntry.RowData;
import com.scalar.forecast.salesForecastEntry.ForecastData;
import com.scalar.forecast.salesForecastEntry.NewLabelValueBean;
import org.apache.struts.upload.FormFile;

/**
 * User: Sujan
 * Date: Jul 13, 2005
 * Time: 4:35:22 PM
 */
public class SalesForecastEntryForm extends ForecastActionForm
{
    private int year;
    private int showNext;
    private int month;
    /**
     * rowDataList is used to store the line item details to be shown in the jsp related to salesperson
     */
    AutoGrowingLinkedList rowDataList           = null;

    /**
     * to store the running total for the rowdatalist
     */
    AutoGrowingLinkedList rowDataListRunningTotal = null;
    /**
     * used to store the subordinates forecast data
     */
    AutoGrowingLinkedList forecastDataList      = null;

    private int spersonId;
    private FormFile salesForecastFile;

    public SalesForecastEntryForm()
    {
        year        = -1;
        showNext    = 0;
        month       = -1;
        rowDataList = new AutoGrowingLinkedList( RowData.class );
        forecastDataList = new AutoGrowingLinkedList( ForecastData.class );
        rowDataListRunningTotal = new AutoGrowingLinkedList( NewLabelValueBean.class );
        spersonId = -1;
    }

    public int getYear()
    {
        return year;
    }

    public void setYear(int year)
    {
        this.year = year;
    }

    public int getShowNext()
    {
        return showNext;
    }

    public void setShowNext(int showNext)
    {
        this.showNext = showNext;
    }

    public int getMonth()
    {
        return month;
    }

    public void setMonth(int month)
    {
        this.month = month;
    }

    public AutoGrowingLinkedList getRowDataList()
    {
        return rowDataList;
    }

    public void setRowDataList(AutoGrowingLinkedList rowDataList)
    {
        this.rowDataList = rowDataList;
    }

    public AutoGrowingLinkedList getForecastDataList()
    {
        return forecastDataList;
    }

    public void setForecastDataList(AutoGrowingLinkedList forecastDataList)
    {
        this.forecastDataList = forecastDataList;
    }

    public AutoGrowingLinkedList getRowDataListRunningTotal()
    {
        return rowDataListRunningTotal;
    }

    public void setRowDataListRunningTotal(AutoGrowingLinkedList rowDataListRunningTotal)
    {
        this.rowDataListRunningTotal = rowDataListRunningTotal;
    }

    public int getSpersonId()
    {
        return spersonId;
    }

    public void setSpersonId(int spersonId)
    {
        this.spersonId = spersonId;
    }

    public FormFile getSalesForecastFile()
    {
        return salesForecastFile;
    }

    public void setSalesForecastFile(FormFile salesForecastFile)
    {
        this.salesForecastFile = salesForecastFile;
    }
}
